from flask import request

from . import app_account

from .is_password import test
from .verify_register import Register

@app_account.route('/register',methods=['POST'])

def registe():

    data=request.form

    phone=data.get("phone")

    password=data.get("pass_word")
    cpassword=data.get('cpass_word')
    verify_code=data.get("verify_code")

    with Register() as c:

        result=c.verify(phone,password,cpassword,verify_code,request.method)

    return result

    
    



